//
//  CommentInfoCell.m
//  BCVersion
//
//  Created by 吴 崧 on 14-3-4.
//  Copyright (c) 2014年 Jungle. All rights reserved.
//

#import "CommentInfoCell.h"
#import "ClientCommentModel.h"
@implementation CommentInfoCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)configWithDataSource:(ClientCommentModel *)model
{
    self.name.text = model.name;
    self.commentDate.text = model.time;
    self.commentInfo.text = model.message;
    self.commentInfo.frame = CGRectSetHeight(self.commentInfo.frame, model.lableHeight);
    self.frame = CGRectSetHeight(self.frame, model.cellHeight);
    [self.scoreImage setScore:model.score.floatValue Large:NO];
}

@end
